# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Chaiwat Suttipongsakul <cwt114@gmail.com>

pkgname=libthai
pkgver=0.1.26
pkgrel=1
pkgdesc="Thai language support routines"
url="https://linux.thai.net/projects/libthai"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('libdatrie')
makedepends=('pkgconfig')
options=('!emptydirs')
source=(https://linux.thai.net/pub/thailinux/software/${pkgname}/${pkgname}-${pkgver}.tar.xz)
md5sums=('e79403961d538b56fc4af7670643844c')
sha256sums=('8710112c836b272db1740a9ea3e6c7ebb65b64eee0e143fc2b2c60f99f6bfe2a')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
